using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement.AsyncOperations;

public class XInstanceMgr
{
    public static AsyncOperationHandle<GameObject> InstantiateAsync(string key)
    {
        return Addressables.InstantiateAsync(key);
    }

    public static void ReleaseInstance(GameObject gameObject)
    {
        Addressables.ReleaseInstance(gameObject);
    }
}
